package com.phuc.game.tankshooter.sprite;

import org.anddev.andengine.entity.sprite.AnimatedSprite;
import org.anddev.andengine.util.constants.TimeConstants;

import com.phuc.game.tankshooter.MainActivity;
import com.phuc.game.tankshooter.engine.GamePlay;

public class BulletCountTotalSprite extends AnimatedSprite implements TimeConstants {

	private static final int FULL_SIZE = 180;
	float alpha;
	float scale;
	BulletCountSprite bulletCount;

	public BulletCountTotalSprite() {
		super(2, MainActivity.SCENE_HEIGH - FULL_SIZE, 40, FULL_SIZE,
				GamePlay.textureBulletNumTotal.getFaceTiledTextureRegion());
		
		bulletCount = new BulletCountSprite();
		this.attachChild(bulletCount);
	}
	
	public void reload() {
		bulletCount.reloading();
	}

	@Override
	public void onManagedUpdate(final float pSecondsElapsed) {
		super.onManagedUpdate(pSecondsElapsed);
		
//		GamePlay game = MainActivity.getInstant().getGamePlay();
//		int height = FULL_SIZE * game.getRocketNum() / game.getRocketNumTotal();
//		this.setHeight(height);
	}
}
